package com.fuhui.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFromat {

    /**
     * 将时间戳格式的日期转换
     * @param date
     * @return
     */
    public static String datetimeChange(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String string = sdf.format(date);
        return string;
    }

}
